<?php

include('class.receiveraccount.php');
$ReceiverAccount = New ReceiverAccount();
$Response = $ReceiverAccount->ValidateReceiverAccount($_POST);
if (is_array($Response)) {

    if ($qr_OBJ == 0) {
        $Response = $ReceiverAccount->NewReceiverAccount($_POST);
    } elseif ($qr_OBJ > 0) {
        $Response = $ReceiverAccount->EditReceiverAccount($_POST['AID'], $_POST);
    }
}
if ($Response) {
    echo '<script charset="utf-8" type="text/javascript">
	document.ReceiverProperties.action=\'_response/call.php?get=Operative/receiveraccount\';
	subform(\'ReceiverProperties\',\'AC_List\');
	document.getElementById(\'NWAC\').innerHTML=\'\';</script>';
} else {
    echo '<script charset="utf-8" type="text/javascript">
	document.getElementById(\'ACMSG\').innerHTML=\'<div class="Error">' . $error_msg[$Response] . '</div>\';</script>';
}